import Vue from 'vue'
import Router from 'vue-router'
import Log from '@/pages/log'
import Sprint from '@/pages/sprint'
import Group from '@/pages/group'
import NewLog from '@/pages/newLog'
import LogDetails from '@/pages/logDetails'
import PageNotFind from '@/pages/pageNotFind'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/sprint'
    },
    {
      path: '/log',
      name: 'log',
      component: Log
    },
    {
      path: '/sprint',
      name: 'sprint',
      component: Sprint
    },
    {
      path: '/newLog',
      name: 'newLog',
      component: NewLog
    },
    {
      path: '/group',
      name: 'group',
      component: Group
    },
    {
      path: '/logDetails',
      name: 'logDetails',
      component: LogDetails
    },
    {
      path: '*',
      component: PageNotFind
    }
  ]
})
